import fetch from '@/utils/request'

export function getCustObj(id) {
  return fetch({
    url: '/api/adminCrm/customerBase/queryOne/' + id,
    method: 'get'
  })
}

export function getPersonalObj(id) {
  return fetch({
    url: '/api/adminCrm/personalBase/queryOne/' + id,
    method: 'get'
  })
}

export function getPerAccObj(obj) {
  return fetch({
    url: '/api/adminCrm/personalAccount/queryList',
    method: 'post',
    data: obj
  })
}

export function getPerCardObj(obj) {
  return fetch({
    url: '/api/adminCrm/personalBindCard/pageList',
    method: 'post',
    data: obj
  })
}

export function addPerCardObj(obj) {
  return fetch({
    url: '/api/adminCrm/personalBindCard/addObj',
    method: 'post',
    data: obj
  })
}

export function queryPeopleNetwork(query) {
  return fetch({
    url: '/api/adminCrm/personalBase/queryPeopleNetwork',
    method: 'post',
    data: query
  })
}

export function addPerTracking(obj) {
  return fetch({
    url: '/api/adminCrm/personalBaseTracking/add',
    method: 'post',
    data: obj
  })
}

export function queryTrackingList(obj) {
  return fetch({
    url: '/api/adminCrm/personalBaseTracking/queryTrackingList',
    method: 'post',
    data: obj
  })
}
